home *** CD-ROM | disk | FTP | other *** search
/ Take-Home Tutor en Espanol / TakeHomeTutor.iso / pc / En espanol / Take-Home Tutor 3 / template4.swf / scripts / frame_4 / DoAction.as
Encoding:
Text File  |  2003-10-20  |  818 b   |  28 lines

  1. stop();
  2. var i = 0;
  3. while(i < ai.questions.question.length)
  4. {
  5.    var mc = this["img" + i];
  6.    mc._width = 60;
  7.    mc._yscale = mc._xscale;
  8.    mc._visible = true;
  9.    i++;
  10. }
  11. if(this.hasImages)
  12. {
  13.    table.setBorder(0);
  14.    var leftAdjust = !this.hasImages ? 0 : 70;
  15.    table.setPosition({x:layoutInfo.box.x,y:tableY + 4});
  16.    table.setCellSpacing(6);
  17.    table.init();
  18.    trace("TABLE WIDTH: " + (layoutInfo.MAX_WIDTH - rightSideBuffer));
  19.    trace("TABLE Y: " + tableY);
  20.    table.setWidth(layoutInfo.MAX_WIDTH - rightSideBuffer - 10);
  21.    trace("SETTING PENCIL HELPER: x: " + clampsRight);
  22.    pencilHelper._x = clamps[0]._x + clamps[0]._width;
  23.    pencilHelper._y = clamps[0]._y + clamps[0]._height / 2;
  24.    this.hasImages = false;
  25.    pencilHelper.swapDepths(bubbleDepthCounter++);
  26. }
  27. gotoAndStop(11);
  28.